package demo;

public class instance {
    static{
        System.out.println("static block1");
    }
    public static void main(String[] args) {
        instance i=new instance();
        A a=i.new A();
        a.work();
    }
    class A{
        static{
            System.out.println("static block2");
        }
        A(){
            System.out.println("constructor3");
        }
        void work(){
            System.out.println("work4");
        }
    }
}
